<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>List Users</title>
    </head>
    <body>
        <h2>List Users</h2>
        <table border=1>
            <tr>
                <td>Nama</td>
                <td>Alamat</td>
                <td>Telepon</td>
                <td>Email</td>
                <td>Username</td>
                <td>Delete</td>
            </tr>
            <c:forEach items="${users}" var="usr">
                <tr>
                    <td>${usr.nama}</td>
                    <td>${usr.alamat}</td>
                    <td>${usr.telepon}</td>
                    <td>${usr.email}</td>
                    <td>${usr.username}</td>
                    <td><a href="controller?page=list&&idUser=${usr.idUser}">delete</a></td>
                </tr>
            </c:forEach>
        </table>
        <br><br>
        <a href="controller?page=null">Back Home</a>
    </body>
</html>
